home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / as / sprite / RCS / sparc.h,v < prev    next >
Encoding:
Text File  |  1991-08-27  |  2.1 KB  |  101 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     91.08.26.23.32.16;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.08.26.22.27.05;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Commented everything out because the new a.out.h has all this stuff already.
  27. @
  28. text
  29. @/* sparc.h -- Header file for the SPARC
  30.    Copyright (C) 1989 Free Software Foundation, Inc.
  31.  
  32. This file is part of GAS, the GNU Assembler.
  33.  
  34. GAS is free software; you can redistribute it and/or modify
  35. it under the terms of the GNU General Public License as published by
  36. the Free Software Foundation; either version 1, or (at your option)
  37. any later version.
  38.  
  39. GAS is distributed in the hope that it will be useful,
  40. but WITHOUT ANY WARRANTY; without even the implied warranty of
  41. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  42. GNU General Public License for more details.
  43.  
  44. You should have received a copy of the GNU General Public License
  45. along with GAS; see the file COPYING.  If not, write to
  46. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  47.  
  48. #if 0
  49. /*
  50.  * The following enum and struct were borrowed from
  51.  * sunOS  /usr/include/sun4/a.out.h
  52.  *
  53.  */
  54.  
  55. enum reloc_type
  56. {
  57.     RELOC_8,        RELOC_16,        RELOC_32,       RELOC_DISP8,
  58.     RELOC_DISP16,   RELOC_DISP32,    RELOC_WDISP30,  RELOC_WDISP22,
  59.     RELOC_HI22,     RELOC_22,        RELOC_13,       RELOC_LO10,
  60.     RELOC_SFA_BASE, RELOC_SFA_OFF13, RELOC_BASE10,   RELOC_BASE13,
  61.     RELOC_BASE22,   RELOC_PC10,      RELOC_PC22,     RELOC_JMP_TBL,
  62.     RELOC_SEGOFF16, RELOC_GLOB_DAT,  RELOC_JMP_SLOT, RELOC_RELATIVE,
  63.  
  64.     NO_RELOC
  65. };
  66.  
  67. struct reloc_info_sparc
  68. {
  69.     unsigned long int r_address;
  70. /*
  71.  * Using bit fields here is a bad idea because the order is not portable. :-(
  72.  */
  73.     unsigned int r_index    : 24;
  74.     unsigned int r_extern   : 1;
  75.     unsigned int unused     : 2;
  76.     enum reloc_type r_type  : 5;
  77.     long int r_addend;
  78. };
  79.  
  80. #define relocation_info reloc_info_sparc
  81.  
  82. #else
  83.  
  84. #include <sun4.md/a.out.h>
  85. #define NO_RELOC        24
  86. #define relocation_info reloc_info_sparc
  87.  
  88. #endif
  89.  
  90. @
  91.  
  92.  
  93. 1.1
  94. log
  95. @Initial revision
  96. @
  97. text
  98. @d20 1
  99. d53 8
  100. @
  101.